package com.lanou3g.code0404.morning;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/4;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        Table table = new Table();
        table.color = "红色";
        table.legCount = 3;
        table.show();

        Foo foo = new Foo();
        int a = 3;
        foo.fun(a, table);
        System.out.println("--->" + a);
        table.show();//红,4

        foo.fun2(table);
        table.show();

        String s = "Hello";
        // 不需要真的写出new,直接把双引号里的
        //内容 赋值过去,就相当于new了
        foo.fun3(s);

        System.out.println(s);

    }
}
